package com.game.protobuf;

import com.esotericsoftware.reflectasm.MethodAccess;
import java.util.Map;

public class MessageController {
    public Object been;

    public MethodAccess methodAccess;

    public Map<Integer, MethodInfo> MethodInfos;

    public MessageController(Object been) {
        this.been = been;
        Class<?> clazz = been.getClass();
        this.methodAccess = MethodAccess.get(clazz);
        this.MethodInfos = MessageUtil.load(this.methodAccess, clazz);
    }

    public MessageController(Object been, Class<?> clazz) {
        this.been = been;
        this.methodAccess = MethodAccess.get(clazz);
        this.MethodInfos = MessageUtil.load(this.methodAccess, clazz);
    }
}

